package com.example.tse.rbhttpservice.service.group.model;

import com.example.tse.rbhttpservice.service.RudderResponse;

import java.util.ArrayList;
import java.util.List;


/**
 * 获取团购详情，根据是否参团显示不同内容，已参团显示“分享”和“现在下单”，同时显示参团人数，未参团显示“我要参团”和“我要开团”，团购分享内容为团购名称＋团购副图＋固定文字＋固定链接（一个静态介绍页面）
 * @author wliu
 * edit tse
 */
public class GroupGetResponse extends RudderResponse{
    private String groupId = "";
    private String name = "";
    private String brief = "";
    private String intro = "";
    private String subImage = "";
    private String limit = "";
    private List<String> joinPersons = new ArrayList<String>();
    private String gcode = "";
    private String instId = "";
    private String isJoined = "";
    private String endTime = "";
    private String status = "";
    private String beginTime = "";
    private String shareLink = "";
    private String shareDesc = "";
    private String productId = "";
    private String price = "";
    private String mktPrice = "";
		
	
    /**
     * @return groupId
     */	
    public String getGroupId() { 
	    return this.groupId;
    };
	
	/**
     * @return groupId
     */	
    public void setGroupId(String groupId) { 
        this.groupId = groupId;
    };
    
    /**
     * @return name
     */	
    public String getName() { 
	    return this.name;
    };
	
	/**
     * @return name
     */	
    public void setName(String name) { 
        this.name = name;
    };
    
    /**
     * @return brief
     */	
    public String getBrief() { 
	    return this.brief;
    };
	
	/**
     * @return brief
     */	
    public void setBrief(String brief) { 
        this.brief = brief;
    };
    
    /**
     * @return intro
     */	
    public String getIntro() { 
	    return this.intro;
    };
	
	/**
     * @return intro
     */	
    public void setIntro(String intro) { 
        this.intro = intro;
    };
    
    /**
     * @return subImage
     */	
    public String getSubImage() { 
	    return this.subImage;
    };
	
	/**
     * @return subImage
     */	
    public void setSubImage(String subImage) { 
        this.subImage = subImage;
    };
    
    /**
     * @return limit
     */	
    public String getLimit() { 
	    return this.limit;
    };
	
	/**
     * @return limit
     */	
    public void setLimit(String limit) { 
        this.limit = limit;
    };
    
    /**
     * @return joinPersons
     */	
    public List<String> getJoinPersons() { 
	    return this.joinPersons;
    };
	
	/**
     * @return joinPersons
     */	
    public void setJoinPersons(List<String> joinPersons) { 
        this.joinPersons = joinPersons;
    };
    
    /**
     * @return gcode
     */	
    public String getGcode() { 
	    return this.gcode;
    };
	
	/**
     * @return gcode
     */	
    public void setGcode(String gcode) { 
        this.gcode = gcode;
    };
    
    /**
     * @return instId
     */	
    public String getInstId() { 
	    return this.instId;
    };
	
	/**
     * @return instId
     */	
    public void setInstId(String instId) { 
        this.instId = instId;
    };
    
    /**
     * @return isJoined
     */	
    public String getIsJoined() { 
	    return this.isJoined;
    };
	
	/**
     * @return isJoined
     */	
    public void setIsJoined(String isJoined) { 
        this.isJoined = isJoined;
    };
    
    /**
     * @return endTime
     */	
    public String getEndTime() { 
	    return this.endTime;
    };
	
	/**
     * @return endTime
     */	
    public void setEndTime(String endTime) { 
        this.endTime = endTime;
    };
    
    /**
     * @return status
     */	
    public String getStatus() { 
	    return this.status;
    };
	
	/**
     * @return status
     */	
    public void setStatus(String status) { 
        this.status = status;
    };
    
    /**
     * @return beginTime
     */	
    public String getBeginTime() { 
	    return this.beginTime;
    };
	
	/**
     * @return beginTime
     */	
    public void setBeginTime(String beginTime) { 
        this.beginTime = beginTime;
    };
    
    /**
     * @return shareLink
     */	
    public String getShareLink() { 
	    return this.shareLink;
    };
	
	/**
     * @return shareLink
     */	
    public void setShareLink(String shareLink) { 
        this.shareLink = shareLink;
    };
    
    /**
     * @return shareDesc
     */	
    public String getShareDesc() { 
	    return this.shareDesc;
    };
	
	/**
     * @return shareDesc
     */	
    public void setShareDesc(String shareDesc) { 
        this.shareDesc = shareDesc;
    };
    
    /**
     * @return productId
     */	
    public String getProductId() { 
	    return this.productId;
    };
	
	/**
     * @return productId
     */	
    public void setProductId(String productId) { 
        this.productId = productId;
    };
    
    /**
     * @return price
     */	
    public String getPrice() { 
	    return this.price;
    };
	
	/**
     * @return price
     */	
    public void setPrice(String price) { 
        this.price = price;
    };
    
    /**
     * @return mktPrice
     */	
    public String getMktPrice() { 
	    return this.mktPrice;
    };
	
	/**
     * @return mktPrice
     */	
    public void setMktPrice(String mktPrice) { 
        this.mktPrice = mktPrice;
    };
    
	
        
    public static void filter(GroupGetResponse group) {
        if (group.getGroupId() == null) {
            group.setGroupId("");
        }
        if (group.getName() == null) {
            group.setName("");
        }
        if (group.getBrief() == null) {
            group.setBrief("");
        }
        if (group.getIntro() == null) {
            group.setIntro("");
        }
        if (group.getSubImage() == null) {
            group.setSubImage("");
        }
        if (group.getLimit() == null) {
            group.setLimit("");
        }
        if (group.getJoinPersons() == null) {
            group.setJoinPersons(new ArrayList<String>());
        }
        if (group.getGcode() == null) {
            group.setGcode("");
        }
        if (group.getInstId() == null) {
            group.setInstId("");
        }
        if (group.getIsJoined() == null) {
            group.setIsJoined("");
        }
        if (group.getEndTime() == null) {
            group.setEndTime("");
        }
        if (group.getStatus() == null) {
            group.setStatus("");
        }
        if (group.getBeginTime() == null) {
            group.setBeginTime("");
        }
        if (group.getShareLink() == null) {
            group.setShareLink("");
        }
        if (group.getShareDesc() == null) {
            group.setShareDesc("");
        }
        if (group.getProductId() == null) {
            group.setProductId("");
        }
        if (group.getPrice() == null) {
            group.setPrice("");
        }
        if (group.getMktPrice() == null) {
            group.setMktPrice("");
        }
    }
}
